package com.jfree.servlet;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

public class CylinderServlet {
	
	public static void main(String[]args){
		//数据集对象
		DefaultCategoryDataset dataset = new DefaultCategoryDataset();
		
		//设置数据
		dataset.addValue(700, "类型", "猪肉");
		dataset.addValue(500, "类型", "羊肉");
		dataset.addValue(300, "类型", "羊肉");
		dataset.addValue(100, "类型", "马肉");
		
		//定义作图对象
		JFreeChart chart = ChartFactory.createBarChart3D("肉类销量统计图","类型","数据",dataset,PlotOrientation.VERTICAL,true,true,true);
		
		
		
	}
}
